﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PersonaLibrary.ViewModel.PrintViewModel;

namespace PersonaLibrary.Commands.PrintCommands
{
	internal class PrintFind : CommandBase
	{
		public override bool CanExecute(object parameter)
		{
			return parameter is IEnumerable;
		}

		public override void Execute(object parameter)
		{
			PrintVM viewModel = new PrintVM(((IEnumerable)parameter).Cast<Data.Employee>());
			viewModel.View.ShowDialog();
		}
	}
}
